package com.xuan.task.Mapper;

import com.xuan.task.domain.HomeworkView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface ExamHomeworkMapper {


    @Select("  select id homeworkId,homework_name homeworkName,lastest_time lastestTime,type from exam_homework\n" +
            "  where type in (0,2) and lastest_time > #{now} " )
    List<HomeworkView> getHomeworkListAllByLastestTime(@Param( "now" ) String now);
}
